package com.sq.partner.manager.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.sq.partner.manager.dao.DictOccupDao;
import com.sq.partner.manager.mybatis.model.DictOccupDto;

/**
 * 职业Dao实现类
 * 
 * @author zhouxiuxiu
 *
 */
@Repository
public class DictOccupDaoImpl extends BaseDaoImpl implements DictOccupDao {

    /**
     * 查询职业树结构
     * 
     * @return
     * @throws Exception
     */
    @SuppressWarnings("unchecked")
    @Override
    public List<DictOccupDto> queryWorkTree(String id) throws Exception {
        if (id == null) {
            return (List<DictOccupDto>)this.queryList("queryWorkTree","");
        } else {
            return (List<DictOccupDto>)this.queryList("queryWorkDown",id);
        }
    }

}
